package zhangcy.day0109.qingyoutravel.service;


import zhangcy.day0109.qingyoutravel.dao.ScenicSpotDao;
import zhangcy.day0109.qingyoutravel.po.ScenicSpot;

import java.util.List;
import java.util.Scanner;

/**
 *
 */
public class ScenicSpotMgr {
    // 定义Logger日志实例
//    private Logger logger = Logger.getLogger(UserMgr.class);

    public void showScenicSpotInfo(ScenicSpotDao scenicSpotDao, Scanner sc){
        System.out.println("显示所有景点信息");
        List<ScenicSpot> scenicSpots = scenicSpotDao.queryAllScenicSpots();
        System.out.println("景点名称\t游玩时长\t景点简介");
        for (ScenicSpot s : scenicSpots){
            System.out.println(s.getSsName() + "\t" + s.getSsDuration() + "\t" + s.getSsContent());
        }
    }
}
